package com.jxd.project.wzgl.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jxd.project.wzgl.dao.ILogDao;
import com.jxd.project.menu.model.Log;
import com.jxd.project.wzgl.service.ILogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName LogServiceImpl
 * @Description Log Service Implementation
 * @Author 刘成
 * @Date 2025/10/1 20:00
 * @Version 1.0
 */
@Service
public class LogServiceImpl extends ServiceImpl<ILogDao, Log> implements ILogService {
    @Autowired
    private ILogDao logDao;

    @Override
    public boolean delWithApplicationId(int applicationId){
        return logDao.delWithApplicationId(applicationId);
    }

    @Override
    public boolean delWithApplicationIds(List<Integer> applicationIds){
        return logDao.delWithApplicationIds(applicationIds);
    }

    @Override
    public List<Log> selectLogWithApplicationId(int applicationId){
        return logDao.selectLogWithApplicationId(applicationId);
    }
}